<?php
$str = "The teacher 'Stefen' say:\"Because A>B,C<B,so A>C.\"";
echo $str, "<br>";
echo htmlspecialchars( $str, ENT_QUOTES );